<div class="tableinfo">
    <div class="tableHeader">
        <p>Danh sách nhân viên được phân công - Đề Án:<?php $mada=$_POST['dsdean']; 
                                                    $sql = "select TenDA from dean where MaDA = $mada"; 
                                                    $kq = executeQuery($sql); //echo $sql;
                                                    while($ten = mysql_fetch_array($kq)){$tenda = $ten['TenDA']; echo " ".$tenda; }  ?></p>
    </div>
    
    
    <table border ="0" cellspacing ="0" cellpadding ="0">
        
        <tr style="background: silver; font-weight: bold;">
            <td>ID Nhân Viên</td>
            <td>Họ và Tên</td>
            <td>Điện thoại</td>

        </tr>
            
                <?php
                    
                    $load_ds_nv_pc = "SELECT b.id_NhanVien, b.HoTen, b.DienThoai FROM phancong a
                                                                    inner join chitietnhanvien b on a.id_NhanVien = b.id_NhanVien

                                                                    WHERE MaDA = $mada";
                    $kq_load_ds_nv = executeQuery($load_ds_nv_pc);
                    while($ds = mysql_fetch_array($kq_load_ds_nv)){
                        $dsid = $ds['id_NhanVien'];
                        $tennvpc = $ds['HoTen'];
                        $tel = $ds['DienThoai'];
                        
                        echo "<tr> <td>$dsid</td> <td>$tennvpc</td> <td>$tel</td> </tr>";
                    }
                 ?>
    
    </table>
    <a href="../admin/chondean.php"><< Trở ra</a>
</div>
